package com.swyc.osschat.Test.designMode.visitor.vo;

import com.swyc.osschat.Test.designMode.visitor.service.Room;
import com.swyc.osschat.Test.designMode.visitor.service.Friend;

/**
 * @description 具体元素角色：房间A
 * @Author: z156940l@outlook.com
 * @className RoomA
 * @Date: 2022/6/27 16:10
 */
public class RoomA implements Room {
    @Override
    public void accept(Friend friend) {
        friend.visit(this);
        System.out.println("访问了房间A");
    }
}
